package org.yourscrum.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@RooEntity
@RooJavaBean
@RooToString
public class Comment {

    @NotNull
    @Size(max=500)
    private String description;

    @Size(max = 50)
    private String email;

    @Temporal(TemporalType.TIMESTAMP)
    private Date createDate;

    @NotNull
    @Size(min = 1, max = 50)
    private String name;
}
